﻿@model IPagedListModel<OpenReservation.Models.Notice>
@{
    Layout = null;
}
@if (Model.Data.Count > 0)
{
    <ul>
        @foreach (var item in Model.Data)
        {
            <li>
                <a href="/Notice/@item.NoticePath" target="_blank">
                    <span class="notice-title">@item.NoticeTitle</span>
                    <span class="pub-time">@item.NoticePublishTime.AddHours(8).ToString("yyyy-MM-dd HH:mm:ss")</span>
                </a>
            </li>
        }
    </ul>
}

@Html.Pager(Model.Pager, pageIndex => $"javascript:loadData({pageIndex})", "PagerPartial", PagingDisplayMode.IfNeeded)